package cm.itheima.Test2;

public class Circle implements ShapePara {

    private double radius;

    public Circle() {
    }

    public Circle(double radius) {
        this.radius = radius;
    }

    public static double getPI() {
        return PI;
    }

    public double getRadius() {
        return radius;
    }
    public void setRadius(double radius) {
        this.radius = radius;
    }

    @Override
    public int getArea() {
        return (int)(PI*radius*radius);
    }

    @Override
    public int getCircumference() {
        return (int)(PI*2*radius);
    }
}
